//
//  FilterCell.m
//  jingdongfang
//
//  Created by MTiMac01 on 2017/8/22.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import "FilterCell.h"

@implementation FilterCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    _titleL.layer.cornerRadius = 15;
    _titleL.layer.masksToBounds = YES;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    //    ThemeList *t = self.data;
    
    _titleL.frame = CGRectMake(0, 0, self.contentView.width, self.contentView.height);
    _titleL.adjustsFontSizeToFitWidth = YES;
    //    textLabel.text = t.title.length > 0 ? t.title : @"";
    if (self.sel)
    {
        _titleL.backgroundColor = [UIColor appColor];
        _titleL.textColor = [UIColor whiteColor];
    }
    else
    {
        _titleL.backgroundColor = [UIColor c6Color];
        _titleL.textColor = [UIColor blackColor];
    }
}

@end
